const importAnalysisPlugin = require('./importAnalysis.js');
const preAliasPlugin = require('./preAlias.js');
const resolvePlugin = require('./resolve.js');
const definePlugin = require('./define');
async function resolvePlugins(config, userPlugins) {
  return [
    preAliasPlugin(config), //把vue=>vue.js
    resolvePlugin(config),
    ...userPlugins,
    definePlugin(config),
    importAnalysisPlugin(config),
  ];
}
exports.resolvePlugins = resolvePlugins;
